import server from '../request/index'
// 获取当日上架商品
export function getTodayGoods(params) {
    return server({
      url: '/reset/good',
      method: 'get',
      params
    })
  }

  // 获取轮播图
export function getSwipeImg(params) {
    return server({
      url: '/reset/swipe',
      method: 'get',
      params
    })
  }

// 根据id获取商品

export function getById(id,params) {
    return server({
        url: `/reset/good/${id}`,
        method: 'get',
        params
      })
  }

  // 根据关键词获取商品

  export function getByQuery(params) {
    return server({
        url: '/reset/good',
        method: 'get',
        params
      })
  }